<template>
  <view class="search-container" @click="onSearch">
    <!-- 搜索框区域 -->
    <view class="search-box">
      <!-- 搜索图标 -->

      <!-- 输入框 -->
      <input 
        class="search-input" 
        placeholder="请输入歌曲名称"
        placeholder-class="placeholder-style"
      />
     
    </view>
  </view>
</template>

<script setup>
	const onSearch = () => {
		uni.navigateTo({
			url: '/subPagesMusic/serchList/index'
		})
	}
</script>

<style scoped>
/* 容器样式 */
.search-container {
  padding: 20rpx 30rpx;
  background: #ffffff
}

/* 搜索框主体 */
.search-box {
  height: 80rpx;
  background: #ffffff;
  border-radius: 40rpx;
  display: flex;
  align-items: center;
  padding: 0 30rpx;
  box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.1);
}

/* 搜索图标 */
.icon-search {
  font-size: 36rpx;
  color: #999;
  margin-right: 20rpx;
}

/* 输入框样式 */
.search-input {
  flex: 1;
  height: 100%;
  font-size: 28rpx;
  color: #333;
}

/* 占位符文字样式 */
.placeholder-style {
  color: #ccc;
  font-size: 28rpx;
}

/* 语音图标（可选） */
.icon-voice {
  font-size: 36rpx;
  color: #666;
  margin-left: 20rpx;
}
</style>